{% extends "profiles/base.html" %}{% load thumbnail %}

{% block title %}Profile for {{ object }}{% endblock %}

{% block content %}
<div class="span-7" style="">

{% if object.mugshot %}
{% thumbnail object.mugshot 200x150 detail as image %}
<img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" border="0" alt="{{ object }}" />
{% endif %}
<hr class="space" />

<div id="basic_info_summary_box" class="basic_info_summary">
	<h3 class="box_header"><span>Information</span></h3>
	<div class="inside basic_info_summary_list">
		<dl class="info">
			<div class="birth_date" style="">
				<dt>Birthday:</dt>
				<dd>{{ object.birth_date|date:"F d, Y" }}</dd>
			</div>
			<div class="current_city" style="">
				<dt>Current City:</dt>
				<dd><a href="http://maps.google.com/?q={{ object.city|urlencode }},{{ object.state }}">{{ object.city }}, {{ object.state }}</a></dd>
			</div>
			<div class="gender" style="">
				<dt>Gender:</dt>
				<dd>{{ object.get_gender_display }}</dd>
			</div>
			<div class="age" style="">
				<dt>Age:</dt>
				<dd>{{ object.age }}</dd>
			</div>
		</dl>
	</div>
</div>

{% if object.service_set.all %}
<div id="basic_info_summary_box" class="basic_info_summary">
	<h3 class="box_header"><span>Services</span></h3>
	<div class="inside basic_info_summary_list">
		<dl class="info">
			{% for service in object.service_set.all %}
			<div class="service-{{ service.service|slugify }}" style="">
				<dd><a href="{{ service.service_url }}">{{ service.title }}</a></dd>
			</div>
			{% endfor %}
		</dl>
	</div>
</div>
{% endif %}

{% if object.link_set.all %}
<div id="basic_info_summary_box" class="basic_info_summary">
	<h3 class="box_header"><span>Links</span></h3>
	<div class="inside basic_info_summary_list">
		<dl class="info">
			{% for link in object.link_set.all %}
			<div class="link-{{ link.title|slugify }}" style="">
				<dd><a href="{{ link.url }}">{{ link.title }}</a></dd>
			</div>
			{% endfor %}
		</dl>
	</div>
</div>
{% endif %}

</div>

<div class="span-14 last" style="">
{% for service in object.service_set.all %}
	{% ifequal service.title 'Twitter' %}
		<h2 class="title">Your Twitter Feed</h2>
		{% if service.TwitterFriendsTimeline %}
		{% for s in service.TwitterFriendsTimeline %}
			<div class="twitter">
				<span class="twitter-user-image"><a href="http://twitter.com/{{ s.user.screen_name }}"><img src="{{ s.user.profile_image_url }}" width="48" height="48" alt="{{ s.user.screen_name }}" /></a></span>
				<span class="twitter-text">{{ s.text|urlize }}</span>
				<div class="twitter-relative-created-at"><a href="http://twitter.com/{{ s.user.screen_name }}/statuses/{{ s.id }}">Posted {{ s.relative_created_at }}</a></div>
			</div>
		{% endfor %}
		{% else %}
		NO FEED
		{% endif %}
	{% endifequal %}
{% endfor %}

</div>
{% endblock %}